package com.wisdom.admin.client;

import com.dtflys.forest.annotation.DataVariable;
import com.dtflys.forest.annotation.Request;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @author ming
 * @ClassName WxClient.java
 * @Description 微信相关接口
 * @createTime 2021年04月26日 16:01:00
 */
@Service
public interface WxClient {
    @Request(
           url = "https://api.weixin.qq.com/sns/jscode2session?appid=${appid}&secret=${secret}&js_code=${code}&grant_type=authorization_code",
           type = "GET"
    )
    Map code2Session(@DataVariable("appid") String appid, @DataVariable("secret") String secret, @DataVariable("code") String code);
}
